package com.huaxinkaiye.utils;

import android.os.AsyncTask;


public abstract class AsyncTaskUtil extends AsyncTask<String,Void,String>{
    private HttpGetUtil httpUtil;

    public AsyncTaskUtil() {
        this.httpUtil = HttpGetUtil.getClient();
    }

    @Override
    protected String doInBackground(String... params) {
        return httpUtil.getJson(params[0]);
    }

    @Override
    protected void onPostExecute(String s) {
        super.onPostExecute(s);
        doJSON(s);
    }
    public abstract void doJSON(String s);

}
